Skip to content

Conversation

g-builder-0
Copy link

Note: Before submitting a code change, please review our contributing guidelines.

Description

Django 5.x now attaches min_value and max_value automatically to BigIntegerField.
This PR updates the test regex in TestRegularFieldMappings.test_regular_fields to accept these constraints.
Without this change, tests fail under Django 5.2.5.

Copy link
Contributor

@auvipy auvipy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you please also fix the pre commit issues?

Comment on lines +172 to +179
boolean_field = BooleanField\(.*\)
char_field = CharField\(.*\)
comma_separated_integer_field = CharField\(.*\)
date_field = DateField\(.*\)
datetime_field = DateTimeField\(.*\)
decimal_field = DecimalField\(.*\)
email_field = EmailField\(.*\)
float_field = FloatField\(.*\)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It feels like this is is changing more than needed... What was the rationale for changing these seemingly unrelated fields to have a .* in the kwargs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants